//
//  MessageInfo.m
//  wuxinlvtu
//
//  Created by Apple on 12-3-6.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "MessageInfo.h"

@implementation MessageInfo

@synthesize travellineid = _travellineid,
name = _name,
creattime = _creattime,
coverurl = _coverurl,
commentcount = _commentcount,
newcommentcount = _newcommentcount;

- (id)init
{
    self = [super init];
    if (self)
    {
        _travellineid = [[NSString alloc] initWithString:@""];
        _name = [[NSString alloc] initWithString:@""];
        _creattime = [[NSString alloc] initWithString:@""];
        _coverurl = [[NSString alloc] initWithString:@""];
        _commentcount = [[NSString alloc] initWithString:@""];
        _newcommentcount = [[NSString alloc] initWithString:@""];
    }
    return self;
}

- (void) dealloc
{
    [_travellineid release];
    [_creattime release];
    [_name release];
    [_coverurl release];
    [_commentcount release];
    [_newcommentcount release];
    
    [super dealloc];
}

@end

@implementation MessageInfoList

@synthesize currentPageId = _currentPageId,
nextPage = _nextPage,
totlePageCount = _totlePageCount,
messageArray = _messageArray;

- (id)init
{
    self = [super init];
    if (self) {
        _currentPageId = 0;
        _nextPage = NO;
        _totlePageCount = 0;
        _messageArray = [[NSMutableArray alloc] init];
    }
    return self;
}

- (void)dealloc {
    [_messageArray removeAllObjects];
    [_messageArray release];
    [super dealloc];
}
@end

@implementation CommentList

@synthesize currentPageId = _currentPageId,
nextPage = _nextPage,
totlePageCount = _totlePageCount,
commentArray = _commentArray;

- (id)init
{
    self = [super init];
    if (self) {
        _currentPageId = 0;
        _nextPage = NO;
        _totlePageCount = 0;
        _commentArray = [[NSMutableArray alloc] init];
    }
    return self;
}

- (void)dealloc {
    [_commentArray removeAllObjects];
    [_commentArray release];
    [super dealloc];
}
@end
